import request from '@/utils/request'

export const Login = data => {
    return request({
        url: '/common/login',
        method: 'post',
        data,
    })
}
///common/qqlogin
export const QQLogin = data => {
    return request({
        url: '/common/qqlogin',
        method: 'post',
        data,
    })
}
///common/qqbindRegister
export const QQBindRegister = data => {
    return request({
        url: '/common/qqbindRegister',
        method: 'post',
        data,
    })
}
export const QQBindLogin = data => {
    return request({
        url: '/common/qqbindLogin',
        method: 'post',
        data,
    })
}
export const Register = data => {
    return request({
        url: '/common/register',
        method: 'post',
        data,
    })
}

// 获取登录用户信息
export const GetUserinfo = () => {
    return request({
        url: '/user/getUserInfo',
        method: 'get',
    })
}

